<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('增加员工档案')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-notice-add">
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">员工：</label>
			<div class="col-sm-10">
				<select id="userId" name="userId" class="form-control m-b" >
					<option th:each="r:${list}" th:text="${r.userName}" th:value="${r.userId}"></option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">性别：</label>
			<div class="col-sm-10">
				<select id="gender" name="gender" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
					<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">生日：</label>
			<div class="col-sm-10">
				<input id="birth" name="birth" type="text" class="time-input" placeholder="生日" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">学历：</label>
			<div class="col-sm-10">
				<input id="education" name="education" class="form-control"  placeholder="学历"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">毕业学校：</label>
			<div class="col-sm-10">
				<input id="graduateSchool" name="graduateSchool" class="form-control"  placeholder="毕业学校"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">毕业时间：</label>
			<div class="col-sm-10">
				<input id="graduateDate" name="graduateDate"  placeholder="毕业时间" type="text" class="time-input" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">户籍地：</label>
			<div class="col-sm-10">
				<input id="domicile" name="domicile" class="form-control"  placeholder="户籍地"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">政治面貌：</label>
			<div class="col-sm-10">
				<input id="politicsStatus" name="politicsStatus" class="form-control"  placeholder="政治面貌"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">入职时间：</label>
			<div class="col-sm-10">
				<input id="entryDate" name="entryDate"  placeholder="入职时间" type="text" class="time-input" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label ">离职时间：</label>
			<div class="col-sm-10">
				<input id="leaveDate" name="leaveDate"  placeholder="离职时间" type="text" class="time-input" />
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "oa/userdoc";

    $("#form-notice-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
        }
    }
</script>
</body>
</html>
